import request from '../utils/request';
/*  */
export const getUsersListApi = ({page=1,perPage=50})=>request.collection('users').getList(page, perPage,{expand:'department'});
/*  */
export const addUserApi = (data)=>request.collection('users').create(data);

export const getUsersOneApi = (key='',value)=> request.collection('users').getFirstListItem(`${key}="${value}"`);


export const deleteUserByIdApi = (id)=>request.collection('users').delete(id);